import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import axios from 'axios'
import VueAxios from 'vue-axios'
Vue.use(VueAxios,axios);
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import myCharts from '@/assets/js/mychart'; //引入eCharts 文件
import '../src/assets/css/main.css'
Vue.use(ElementUI);
Vue.use(myCharts);
Vue.config.productionTip = false;

//2 使用axios后置拦截器，处理没有登录请求
axios.interceptors.response.use(res=>{
    let {success, result} = res.data;
    console.log(res)
    return res;
},error => {
    Promise.reject(error);
})


new Vue({
	router,
	store,
	render: (h) => h(App)
}).$mount('#app');
